package huahua.pm25.utils;

import java.util.Calendar;
import java.util.Date;

/**
 * @author: zhanghuadi
 * @date: 2018/4/18 0018
 * @description: 时间工具类
 */
public class DateUtil {


    private static Calendar calendar = Calendar.getInstance();

    /**获取当前时间*/
//    public static String getDate(){
//        return calendar.get(Calendar.YEAR) + "/" + calendar.get(Calendar.MONTH) + "/" +calendar.get(Calendar.DATE)  ;
//    }

    /**获取时间戳*/
    public static Date getDate(){
        return new Date() ;
    }
}
